is_infinite
Determine whether it is infinite
is_infinite()
determines whether it is an infinite value.
<?php echo is_infinite ( 2 ) ; echo is_infinite ( log ( 0 ) ) ; echo is_infinite ( 2000 ) ; ?>
Try it yourself
is_infinite ( x )
parameter | describe |
---|---|
x | Required. Specify the value to be checked. |
Return true if x is infinite (positive or negative), such as the result of log(0) or any value that exceeds the range of floating point numbers on this platform.